how to go to a link using javascript

121

how to go to a link using javascript -

//This works in all browsers:

window.location.href = '...';

/*If you wanted to change the page without it reflecting in the browser back
history, you can do:*/
window.location.replace('...');

Comments

Submit
0 Comments